#pragma once

#include <QtWidgets/QWidget>
#include "ui_XPlay2.h"
#include <QTimer>
class XPlay2 : public QWidget
{
    Q_OBJECT

public:
    XPlay2(QWidget *parent = Q_NULLPTR);
	~XPlay2();
	
	//定时器
	//QTimer* timer1 = new QTimer(this);
	void XPlay2::timerEvent(QTimerEvent * e);
	//窗口尺寸变化
	void resizeEvent(QResizeEvent *e);
	//双击全屏
	void mouseDoubleClickEvent(QMouseEvent *e);

	void setPause(bool isPause);

public slots:
	void OpenFile();
	void PlayorPause();
	void SliderPress();
	void SilderRelease();
private:
	Ui::XPlay2Class ui;
	bool isSilderPress = false;
};
